package csc.fresher.entity;

public enum AccountHasInterestRateState {
	ACCEPTED("accepted"), PENDING("pending"), DENY("deny");
	private final String state;

	public String getState() {
		return state;
	}

	private AccountHasInterestRateState(String state) {
		this.state = state;
	}
	
	public static AccountHasInterestRateState getFromState(String stringState) {
        switch (stringState) {
        case "accepted":
            return ACCEPTED;
        case "pending":
            return PENDING;
        case "deny":
        	return DENY;
        default:
            return null;
        }
    }
}
